import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import HelloWorld from '@/components/HelloWorld'
import Analyse from '@/views/Analyse'
import User from '@/views/User'
import KPI from '@/views/KPI'
import Tag from '@/views/Tag'
import TagDetails from '@/views/TagDetails'
import Funnel from '@/views/Funnel'
import TagEdit from '@/views/TagEdit'
import Event from '@/views/Event'
import GroupList from '@/views/GroupList'
import GroupAnalysis from '@/views/GroupAnalysis'
//渠道分析路由
import Channel from '@/views/Channel'
//人群分析
import Crowd from '@/views/Crowd'
//留存分析
import Keep from '@/views/Keep'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'Analyse',
        component: Analyse,
        redirect: '/kpi',
        children: [{
            path: '/user',
            name: 'User',
            component: User,
        },
        {
            path: '/kpi',
            name: 'KPI',
            component: KPI,
        },
        {
            path: '/channel',
            name: 'Channel',
            component: Channel
        },
        {
            path: '/tag',
            name: 'Tag',
            component: Tag,
        },
        {
            path: '/details',
            name: 'TagDetails',
            component: TagDetails,
        },
        {
            path: '/tagedit',
            name: 'TagEdit',
            component: TagEdit,
        },
        {
            path: '/event',
            name: 'Event',
            component: Event,
        },
        {
            path: '/keep',
            name: 'keep',
            component: Keep
        },
        {
            path: '/funnel',
            name: 'Funnel',
            component: Funnel,
        },
        {
            path: '/group',
            name: 'GroupList',
            component: GroupList,
        },
        {
            path: '/Crowd',
            name: 'Crowd',
            component: Crowd
        },
        {
            path: '/groupanalysis',
            name: 'GroupAnalysis',
            component: GroupAnalysis,
        }
        ]
    }

    ]
})